// @Author miaoqing
// @Date 2024/02/27 14:43:00
// @Desc
package logic

import "core/common"

func (srv *Server) registerPvpServerTimer() {
	if srv.srvID != "" && !srv.stopping.Load() {
		req := &common.AddServerReq{
			SI: &common.ServerInfo{
				ServerID: srv.srvID,
				Addr:     srv.srvAddr,
			},
		}
		_ = common.SendCenterHttpRequest(req, nil, "POST", "/addPvpServer")
	}
}
